<?php
set_time_limit ( 0 );
include_once '../connect.php';

$sql = "SELECT id,zushoubi FROM fangjia ";
$result = mysql_query ( $sql, $dbc ) or die ( mysql_error () );

while ( $arr_zushoubi = mysql_fetch_array ( $result ) ) {
	if ($arr_zushoubi [zushoubi] == '') { // || $arr_xiaoqu_zufang[meipingzujin] == ''){
		continue;
	}
	$nianshouyi =  round(1200 / $arr_zushoubi [zushoubi] ,2);
	$query = "UPDATE fangjia SET nianshouyi = '$nianshouyi' WHERE id = '$arr_zushoubi[id]'";
	
	$result_over = mysql_query ( $query, $dbc ) or die ( mysql_error () );
	echo $arr_zushoubi [id] . "<br>";
}
echo "over le";
?>